<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title></title>
    <link href="css/mui.min.css" rel="stylesheet" />
    <script src="js/mui.min.js"></script>
    <script type="text/javascript" charset="utf-8">
      	mui.init();
    </script>
	<script type="text/javascript" src="js/vue.min.js" charset="utf-8"></script>
	<link rel="stylesheet" href="js/layui/dist/css/layui.css">
	<script type="text/javascript" src="js/layui/dist/layui.js" charset="utf-8"></script>
	<script src="js/words.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
    <div id="list">
        <div class="layui-panel" style="width: 50%;">
            <ul class="layui-menu">
                <li class="layui-menu-item-parent" lay-options="{type: 'parent'}">
                    <div class="layui-menu-body-title" style="text-align: center;">
                        <a href="practice.html?id=0">练习本页</a>
					</div>
				</li>
                <li class="layui-menu-item-parent" lay-options="{type: 'parent'}">
                    <div class="layui-menu-body-title" style="text-align: center;">
                        <a href="auto_sentence-making.html?id=0">自动造句</a>
					</div>
				</li>
                <li v-for="i in list" class="layui-menu-item-parent" lay-options="{type: 'parent'}">
                    <div class="layui-menu-body-title" style="text-align: center;">
                        <a href="javascript:void(0);" v-on:click="show_dialog(i.c)">{{ i.e }}</a>
                        <i class="layui-icon layui-icon-right"></i>
                    </div>
                    <div class="layui-panel layui-menu-body-panel">
                        <ul>
                            <li v-for="i_sub in i.a">
                                <div class="layui-menu-body-title">
                                    <a href="javascript:void(0);" v-on:click="show_dialog(i_sub.c)">{{ i_sub.e }}</a>
                                </div>
                            </li>
                        </ul>
                    </div>
                </li>
            </ul>
        </div>
    </div>
    <script type="text/javascript">
        var list = new Vue({
            el: '#list',
            data: {
                list: word_list[0]
            },
            methods: {
                show_dialog: (c) => {
                    alert(c);
                }
            }
        });
    </script>
</body>
</html>